<template>
	<view>
		<view class="list-tip">
			<view class="flex fath">
				<view class="list-warp clearFix" v-for="(item,index) in list" :key="index">
					<!-- {{item}} -->
					<image class="bg" :src="item.img" mode=""></image>
					<view class="list-text">
						<h2><text class="l-txt">{{item.tit}}</text></h2>
						<text class="con">{{item.dic}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:Array
		},
		data() {
			return {
			}
		},
		methods: {
		}
	}
</script>

<style scopedss>
	.list-tip{
		width: 95%;
		margin: 0 auto;
	}
	.fath{
		display:flex;
		justify-content:space-between;
		flex-wrap: wrap;
	}
	.list-warp{
		width:350rpx ;
		height: 280rpx;
		margin-bottom: 20rpx;
		border-radius: 10rpx;
		position: relative;
		/* flex-shrink:0; */
	}
	.list-warp .bg{
		border-radius: 20rpx;
		width: 100%;
		height: 100%;
	}
	.list-text{
		width: 100%;
		position: absolute;
		bottom: 0;
		font-weight: normal;
		line-height: 60rpx;
	}
	.list-text h2{
		overflow: hidden;
		text-overflow:ellipsis; 
		white-space: nowrap;
		display: block;
		font-size:40rpx;
		padding-left: 15rpx;
		font-weight: normal;
		border-radius: 0 0 20rpx 20rpx;
		color:#fff;
		background-color: rgba(28,139,226,0.5);
	}
</style>
